package com.zygh.policeasset.mapper;

import com.zygh.policeasset.pojo.ApprovalSteps;
import java.util.List;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;

@Mapper
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/mapper/ApprovalStepsMapper.class */
public interface ApprovalStepsMapper {
    @Select({"select approved_by  from  approval_steps where type = #{type}"})
    String approvedBy(String str);

    @Select({"select approved_by  from  approval_steps where id = #{id}"})
    String approvedById(Integer id);

    @Results({@Result(column = "approved_by", property = "approvedBy", jdbcType = JdbcType.VARCHAR)})
    @Select({"<script>"+
            "select *  from  approval_steps " +
            "<where>" +
            "<if test='type != null and type.length &gt; 0'>  type = #{type}</if>" +
            "</where>" +
            "</script>"})
    List<ApprovalSteps> selectAll(@Param("type") String type);
}